#ifndef FORMBUILDER_H
#define FORMBUILDER_H

#include <QObject>
#include "qeventlabel.h"
#include <QLabel>

class QListItem : public QWidget
{
    Q_OBJECT
    QLabel *m_pix;
    QLabel *m_A;
    QLabel *m_B;
    QLabel *m_stat;
public:
    explicit QListItem(QPixmap &pic, QString &textA, QString &textB, int status = 0, QWidget *parent = 0);
    ~QListItem();
};

class FormBuilder : public QObject
{
    Q_OBJECT
public:
    explicit FormBuilder(QObject *parent = 0);
        QEventLabel* driverForm();
        QEventLabel* loginForm();
        QEventLabel* messageForm();
        QEventLabel* main();
        QEventLabel* logForm();
        QEventLabel* sendForm();
        QListItem *addListItem(QPixmap &pic, QString &textA, QString &textB, int status = 0);
private:
        QEventLabel* buildBase(int nHeight, bool big = false);
        QScopedPointer<QEventLabel> m_installDriverForm;
        QScopedPointer<QEventLabel> m_loginForm;
        QScopedPointer<QEventLabel> m_msgForm;
        QScopedPointer<QEventLabel> m_main;
        QScopedPointer<QEventLabel> m_log;
        QScopedPointer<QEventLabel> m_sendForm;
        QString m_styled;
    
signals:
    
public slots:
    
};

#endif // FORMBUILDER_H
